home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / os / sprite.X11R3 / RCS / osinit.c,v < prev    next >
Encoding:
Text File  |  1989-10-26  |  3.6 KB  |  220 lines

  1. head     1.8;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.8
  10. date     89.10.25.18.06.49;  author tve;  state Exp;
  11. branches ;
  12. next     1.7;
  13.  
  14. 1.7
  15. date     89.10.23.17.44.32;  author tve;  state Exp;
  16. branches ;
  17. next     1.6;
  18.  
  19. 1.6
  20. date     89.10.04.19.18.06;  author tve;  state Exp;
  21. branches ;
  22. next     1.5;
  23.  
  24. 1.5
  25. date     88.09.09.18.00.23;  author ouster;  state Exp;
  26. branches ;
  27. next     1.4;
  28.  
  29. 1.4
  30. date     87.11.01.20.21.12;  author deboor;  state Exp;
  31. branches ;
  32. next     1.3;
  33.  
  34. 1.3
  35. date     87.06.23.13.36.06;  author deboor;  state Exp;
  36. branches ;
  37. next     1.2;
  38.  
  39. 1.2
  40. date     87.06.13.11.27.50;  author deboor;  state Exp;
  41. branches ;
  42. next     1.1;
  43.  
  44. 1.1
  45. date     87.06.11.17.47.22;  author deboor;  state Exp;
  46. branches ;
  47. next     ;
  48.  
  49.  
  50. desc
  51. @Initialization function
  52. @
  53.  
  54.  
  55. 1.8
  56. log
  57. @added color database code
  58. @
  59. text
  60. @/*-
  61.  * osinit.c --
  62.  *    Initialization!
  63.  *
  64.  * Copyright (c) 1987 by the Regents of the University of California
  65.  *
  66.  * Permission to use, copy, modify, and distribute this
  67.  * software and its documentation for any purpose and without
  68.  * fee is hereby granted, provided that the above copyright
  69.  * notice appear in all copies.  The University of California
  70.  * makes no representations about the suitability of this
  71.  * software for any purpose.  It is provided "as is" without
  72.  * express or implied warranty.
  73.  *
  74.  *
  75.  */
  76. #ifndef lint
  77. static char rcsid[] =
  78. "$Header: /mic/X11R3/src/cmds/Xsp/os/sprite/RCS/osinit.c,v 1.7 89/10/23 17:44:32 tve Exp $ SPRITE (Berkeley)";
  79. #endif lint
  80.  
  81. #include    "spriteos.h"
  82. #include    "opaque.h"
  83. #include    <dbm.h>
  84. #include    <bit.h>
  85.  
  86. /*-
  87.  *-----------------------------------------------------------------------
  88.  * OsInit --
  89.  *    Initialize this module. Not much to do...
  90.  *
  91.  * Results:
  92.  *
  93.  * Side Effects:
  94.  *
  95.  *-----------------------------------------------------------------------
  96.  */
  97. OsInit()
  98. {
  99.     static havergb = 0;
  100.  
  101.     GrabDone = FALSE;
  102.     List_Init(&allStreams);
  103.     if (ClientsWithInputMask != (int *)0) {
  104.     /*
  105.      * On Reset, all the clients and devices should have gone away,
  106.      * but that could still leave something bogus in the
  107.      * ClientsWithInputMask...
  108.      */
  109.     Bit_Zero (NumActiveStreams, ClientsWithInputMask);
  110.     }
  111.  
  112.     if(!havergb)
  113.         if(dbminit (rgbPath) == 0)
  114.         havergb = 1;
  115.         else
  116.         ErrorF( "Couldn't open RGB_DB '%s'\n", rgbPath );
  117. }
  118. @
  119.  
  120.  
  121. 1.7
  122. log
  123. @changes for X11R3
  124. @
  125. text
  126. @d19 1
  127. a19 1
  128. "$Header: /mic/X11R3/src/cmds/Xsprite/os/sprite/RCS/osinit.c,v 1.6 89/10/04 19:18:06 tve Exp Locker: tve $ SPRITE (Berkeley)";
  129. d23 2
  130. d40 2
  131. d52 6
  132. @
  133.  
  134.  
  135. 1.6
  136. log
  137. @init allStreams in OsInit function
  138. @
  139. text
  140. @d19 1
  141. a19 1
  142. "$Header: osinit.c,v 1.5 88/09/09 18:00:23 ouster Exp $ SPRITE (Berkeley)";
  143. d39 1
  144. a39 1
  145.     List_Init(allStreams);
  146. @
  147.  
  148.  
  149. 1.5
  150. log
  151. @Include bit.h.
  152. @
  153. text
  154. @d19 1
  155. a19 1
  156. "$Header: osinit.c,v 1.4 87/11/01 20:21:12 deboor Exp $ SPRITE (Berkeley)";
  157. d39 1
  158. @
  159.  
  160.  
  161. 1.4
  162. log
  163. @Added clear out of ClientsWithInputMask and nuked stuff for allStreams
  164. list (used only by pdev.c)
  165. @
  166. text
  167. @d19 1
  168. a19 1
  169. "$Header: osinit.c,v 1.3 87/06/23 13:36:06 deboor Exp $ SPRITE (Berkeley)";
  170. d23 1
  171. @
  172.  
  173.  
  174. 1.3
  175. log
  176. @Added initialization of the allStreams list.
  177. @
  178. text
  179. @a5 1
  180.  * Copyright (c) 1987 by Adam de Boor, UC Berkeley
  181. d19 1
  182. a19 1
  183. "$Header: osinit.c,v 1.2 87/06/13 11:27:50 deboor Exp $ SPRITE (Berkeley)";
  184. a36 2
  185.     extern void ConnectionClosed(); /* In connect.c */
  186.  
  187. d38 7
  188. a44 2
  189.     if (allStreams != (Lst) 0) {
  190.     Lst_Destroy (allStreams, ConnectionClosed);
  191. a45 1
  192.     allStreams = Lst_Init (FALSE);
  193. @
  194.  
  195.  
  196. 1.2
  197. log
  198. @Added reinitialization of GrabDone, just in case.
  199. @
  200. text
  201. @d20 1
  202. a20 1
  203. "$Header: osinit.c,v 1.1 87/06/11 17:47:22 deboor Exp $ SPRITE (Berkeley)";
  204. d38 2
  205. d41 4
  206. @
  207.  
  208.  
  209. 1.1
  210. log
  211. @Initial revision
  212. @
  213. text
  214. @d20 1
  215. a20 1
  216. "$Header$ SPRITE (Berkeley)";
  217. d23 2
  218. d38 1
  219. @
  220.